package com.wzw.conference.entity;

import lombok.Data;

/**
 *
 * @author wzw
 * @date 2023/3/21
 */

@Data
public class Talk implements Comparable<Talk> {

  private String schedule;
  private String title;
  private int duration;

  public Talk(String title, int duration) {
    this.title = title;
    this.duration = duration;
  }


  @Override
  public int compareTo(Talk other) {
    return Integer.compare(duration, other.duration);
  }


}
